home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-06-30 | 4.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: MainMenu.cp
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| MS-DOS Code Page Info (other/dosCodePage)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Jun 30 16:05:09 1997, modified Mon Jun 30 16:05:09 1997, creator 'CWIE', type ASCII, 4018 bytes "MainMenu.cp" , at 0x1032 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 61 69 6e 4d 65 | 6e 75 2e 63 70 00 00 00 |..MainMe|nu.cp...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0f b2 00 | 00 01 1e af dd c1 f5 af |........|........|
|00000060| dd c1 f5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 55 f1 00 00 |........|....U...|
|00000080| 2f 2a 20 4d 61 69 6e 4d | 65 6e 75 2e 63 70 20 2a |/* MainM|enu.cp *|
|00000090| 2f 0d 2f 2a 20 43 72 65 | 61 74 65 64 20 36 2f 33 |/./* Cre|ated 6/3|
|000000a0| 30 2f 39 37 20 34 3a 30 | 35 20 50 4d 20 62 79 20 |0/97 4:0|5 PM by |
|000000b0| 41 70 70 4d 61 6b 65 72 | 20 2a 2f 0d 0d 23 69 6e |AppMaker| */..#in|
|000000c0| 63 6c 75 64 65 20 3c 54 | 79 70 65 73 2e 68 3e 0d |clude <T|ypes.h>.|
|000000d0| 23 69 6e 63 6c 75 64 65 | 20 3c 51 75 69 63 6b 64 |#include| <Quickd|
|000000e0| 72 61 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |raw.h>.#|include |
|000000f0| 3c 43 6f 6e 74 72 6f 6c | 73 2e 68 3e 0d 23 69 6e |<Control|s.h>.#in|
|00000100| 63 6c 75 64 65 20 3c 44 | 69 61 6c 6f 67 73 2e 68 |clude <D|ialogs.h|
|00000110| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 45 76 65 6e |>.#inclu|de <Even|
|00000120| 74 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ts.h>.#i|nclude <|
|00000130| 4c 69 73 74 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Lists.h>|.#includ|
|00000140| 65 20 3c 4c 6f 77 4d 65 | 6d 2e 68 3e 0d 23 69 6e |e <LowMe|m.h>.#in|
|00000150| 63 6c 75 64 65 20 3c 4d | 65 6e 75 73 2e 68 3e 0d |clude <M|enus.h>.|
|00000160| 23 69 6e 63 6c 75 64 65 | 20 3c 54 65 78 74 45 64 |#include| <TextEd|
|00000170| 69 74 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 22 |it.h>.#i|nclude "|
|00000180| 44 6f 63 49 6e 66 6f 2e | 68 22 0d 23 69 6e 63 6c |DocInfo.|h".#incl|
|00000190| 75 64 65 20 22 47 6c 6f | 62 61 6c 73 2e 68 22 0d |ude "Glo|bals.h".|
|000001a0| 23 69 6e 63 6c 75 64 65 | 20 22 52 65 73 6f 75 72 |#include| "Resour|
|000001b0| 63 65 44 65 66 73 2e 68 | 22 0d 23 69 6e 63 6c 75 |ceDefs.h|".#inclu|
|000001c0| 64 65 20 22 4d 69 73 63 | 65 6c 6c 61 6e 79 2e 68 |de "Misc|ellany.h|
|000001d0| 22 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 46 69 6c |"..#incl|ude "Fil|
|000001e0| 65 4d 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |eM.h".#i|nclude "|
|000001f0| 45 64 69 74 4d 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |EditM.h"|.#includ|
|00000200| 65 20 22 52 65 6d 69 6e | 64 4d 2e 68 22 0d 0d 23 |e "Remin|dM.h"..#|
|00000210| 69 6e 63 6c 75 64 65 20 | 3c 54 6f 6f 6c 55 74 69 |include |<ToolUti|
|00000220| 6c 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ls.h>.#i|nclude "|
|00000230| 4d 61 69 6e 4d 65 6e 75 | 2e 68 22 0d 0d 0d 73 74 |MainMenu|.h"...st|
|00000240| 61 74 69 63 20 76 6f 69 | 64 20 45 6e 61 62 6c 65 |atic voi|d Enable|
|00000250| 09 09 09 28 73 68 6f 72 | 74 09 09 09 69 74 65 6d |...(shor|t...item|
|00000260| 4e 72 2c 0d 09 09 09 09 | 09 09 09 20 42 6f 6f 6c |Nr,.....|... Bool|
|00000270| 65 61 6e 09 09 65 6e 61 | 62 6c 65 64 29 3b 0d 73 |ean..ena|bled);.s|
|00000280| 74 61 74 69 63 20 76 6f | 69 64 20 45 6e 61 62 6c |tatic vo|id Enabl|
|00000290| 65 54 69 74 6c 65 09 09 | 28 4d 65 6e 75 48 61 6e |eTitle..|(MenuHan|
|000002a0| 64 6c 65 09 09 6d 65 6e | 75 2c 0d 09 09 09 09 09 |dle..men|u,......|
|000002b0| 09 09 20 42 6f 6f 6c 65 | 61 6e 09 09 65 6e 61 62 |.. Boole|an..enab|
|000002c0| 6c 65 64 29 3b 0d 73 74 | 61 74 69 63 20 76 6f 69 |led);.st|atic voi|
|000002d0| 64 20 44 6f 41 70 70 6c | 65 09 09 09 28 73 68 6f |d DoAppl|e...(sho|
|000002e0| 72 74 09 09 09 69 74 65 | 6d 4e 72 29 3b 0d 0d 2f |rt...ite|mNr);../|
|000002f0| 2a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2a 2f 0d 76 6f |*-------|---*/.vo|
|00000300| 69 64 20 49 6e 69 74 54 | 69 74 6c 65 73 20 28 76 |id InitT|itles (v|
|00000310| 6f 69 64 29 0d 7b 0d 09 | 49 6e 69 74 46 69 6c 65 |oid).{..|InitFile|
|00000320| 4d 20 28 29 3b 0d 09 49 | 6e 69 74 45 64 69 74 4d |M ();..I|nitEditM|
|00000330| 20 28 29 3b 0d 09 49 6e | 69 74 52 65 6d 69 6e 64 | ();..In|itRemind|
|00000340| 4d 20 28 29 3b 0d 0d 7d | 20 2f 2a 49 6e 69 74 54 |M ();..}| /*InitT|
|00000350| 69 74 6c 65 73 2a 2f 0d | 0d 2f 2a 2d 2d 2d 2d 2d |itles*/.|./*-----|
|00000360| 2d 2d 2d 2d 2d 2a 2f 0d | 76 6f 69 64 20 4c 6f 61 |-----*/.|void Loa|
|00000370| 64 4d 65 6e 75 73 20 28 | 76 6f 69 64 29 0d 7b 0d |dMenus (|void).{.|
|00000380| 09 41 70 70 6c 65 4d 65 | 6e 75 09 3d 20 47 65 74 |.AppleMe|nu.= Get|
|00000390| 4d 65 6e 75 20 28 4d 45 | 4e 55 5f 41 70 70 6c 65 |Menu (ME|NU_Apple|
|000003a0| 29 3b 0d 09 46 61 69 6c | 4e 69 6c 52 65 73 6f 75 |);..Fail|NilResou|
|000003b0| 72 63 65 20 28 28 48 61 | 6e 64 6c 65 29 41 70 70 |rce ((Ha|ndle)App|
|000003c0| 6c 65 4d 65 6e 75 29 3b | 0d 09 41 70 70 65 6e 64 |leMenu);|..Append|
|000003d0| 52 65 73 4d 65 6e 75 20 | 28 41 70 70 6c 65 4d 65 |ResMenu |(AppleMe|
|000003e0| 6e 75 2c 20 27 44 52 56 | 52 27 29 3b 0d 09 46 69 |nu, 'DRV|R');..Fi|
|000003f0| 6c 65 4d 65 6e 75 09 3d | 20 47 65 74 4d 65 6e 75 |leMenu.=| GetMenu|
|00000400| 20 28 4d 45 4e 55 5f 46 | 69 6c 65 29 3b 0d 09 45 | (MENU_F|ile);..E|
|00000410| 64 69 74 4d 65 6e 75 09 | 3d 20 47 65 74 4d 65 6e |ditMenu.|= GetMen|
|00000420| 75 20 28 4d 45 4e 55 5f | 45 64 69 74 29 3b 0d 09 |u (MENU_|Edit);..|
|00000430| 52 65 6d 69 6e 64 4d 65 | 6e 75 09 3d 20 47 65 74 |RemindMe|nu.= Get|
|00000440| 4d 65 6e 75 20 28 4d 45 | 4e 55 5f 52 65 6d 69 6e |Menu (ME|NU_Remin|
|00000450| 64 29 3b 0d 0d 09 49 6e | 73 65 72 74 4d 65 6e 75 |d);...In|sertMenu|
|00000460| 20 28 41 70 70 6c 65 4d | 65 6e 75 2c 20 30 29 3b | (AppleM|enu, 0);|
|00000470| 0d 09 49 6e 73 65 72 74 | 4d 65 6e 75 20 28 46 69 |..Insert|Menu (Fi|
|00000480| 6c 65 4d 65 6e 75 2c 20 | 30 29 3b 0d 09 49 6e 73 |leMenu, |0);..Ins|
|00000490| 65 72 74 4d 65 6e 75 20 | 28 45 64 69 74 4d 65 6e |ertMenu |(EditMen|
|000004a0| 75 2c 20 30 29 3b 0d 09 | 49 6e 73 65 72 74 4d 65 |u, 0);..|InsertMe|
|000004b0| 6e 75 20 28 52 65 6d 69 | 6e 64 4d 65 6e 75 2c 20 |nu (Remi|ndMenu, |
|000004c0| 30 29 3b 0d 0d 09 44 72 | 61 77 4d 65 6e 75 42 61 |0);...Dr|awMenuBa|
|000004d0| 72 20 28 29 3b 0d 7d 20 | 2f 2a 4c 6f 61 64 4d 65 |r ();.} |/*LoadMe|
|000004e0| 6e 75 73 2a 2f 0d 0d 2f | 2a 2d 2d 2d 2d 2d 2d 2d |nus*/../|*-------|
|000004f0| 2d 2d 2d 2a 2f 0d 73 74 | 61 74 69 63 20 76 6f 69 |---*/.st|atic voi|
|00000500| 64 20 44 6f 41 62 6f 75 | 74 20 28 76 6f 69 64 29 |d DoAbou|t (void)|
|00000510| 0d 7b 0d 09 73 68 6f 72 | 74 09 09 09 69 74 65 6d |.{..shor|t...item|
|00000520| 4e 72 3b 0d 0d 09 69 74 | 65 6d 4e 72 20 3d 20 41 |Nr;...it|emNr = A|
|00000530| 6c 65 72 74 20 28 41 62 | 6f 75 74 49 44 2c 20 6e |lert (Ab|outID, n|
|00000540| 69 6c 29 3b 0d 7d 20 2f | 2a 44 6f 41 62 6f 75 74 |il);.} /|*DoAbout|
|00000550| 2a 2f 0d 0d 0d 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*/.../*-|--------|
|00000560| 2d 2a 2f 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 |-*/.stat|ic void |
|00000570| 44 6f 41 70 70 6c 65 20 | 28 73 68 6f 72 74 20 20 |DoApple |(short |
|00000580| 20 20 20 69 74 65 6d 4e | 72 29 0d 7b 0d 09 53 74 | itemN|r).{..St|
|00000590| 72 32 35 35 09 09 09 6e | 61 6d 65 3b 0d 09 73 68 |r255...n|ame;..sh|
|000005a0| 6f 72 74 09 09 09 72 65 | 66 4e 75 6d 3b 0d 0d 09 |ort...re|fNum;...|
|000005b0| 73 77 69 74 63 68 20 28 | 69 74 65 6d 4e 72 29 20 |switch (|itemNr) |
|000005c0| 7b 0d 09 09 63 61 73 65 | 20 63 41 70 70 6c 65 41 |{...case| cAppleA|
|000005d0| 62 6f 75 74 3a 0d 09 09 | 09 09 44 6f 41 62 6f 75 |bout:...|..DoAbou|
|000005e0| 74 20 28 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |t ();...|.break;.|
|000005f0| 0d 09 09 64 65 66 61 75 | 6c 74 3a 0d 09 09 09 09 |...defau|lt:.....|
|00000600| 47 65 74 4d 65 6e 75 49 | 74 65 6d 54 65 78 74 20 |GetMenuI|temText |
|00000610| 28 41 70 70 6c 65 4d 65 | 6e 75 2c 20 69 74 65 6d |(AppleMe|nu, item|
|00000620| 4e 72 2c 20 6e 61 6d 65 | 29 3b 0d 09 09 09 09 72 |Nr, name|);.....r|
|00000630| 65 66 4e 75 6d 20 3d 20 | 4f 70 65 6e 44 65 73 6b |efNum = |OpenDesk|
|00000640| 41 63 63 20 28 6e 61 6d | 65 29 3b 0d 09 09 09 62 |Acc (nam|e);....b|
|00000650| 72 65 61 6b 3b 0d 09 7d | 20 2f 2a 73 77 69 74 63 |reak;..}| /*switc|
|00000660| 68 2a 2f 0d 7d 20 2f 2a | 44 6f 41 70 70 6c 65 2a |h*/.} /*|DoApple*|
|00000670| 2f 0d 0d 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |/../*---|-------*|
|00000680| 2f 0d 76 6f 69 64 20 44 | 6f 4d 65 6e 75 20 28 6c |/.void D|oMenu (l|
|00000690| 6f 6e 67 09 09 6d 65 6e | 75 43 68 6f 69 63 65 29 |ong..men|uChoice)|
|000006a0| 0d 7b 0d 09 73 68 6f 72 | 74 09 09 09 6d 65 6e 75 |.{..shor|t...menu|
|000006b0| 49 44 3b 0d 09 73 68 6f | 72 74 09 09 09 69 74 65 |ID;..sho|rt...ite|
|000006c0| 6d 4e 72 3b 0d 0d 09 6d | 65 6e 75 49 44 20 3d 20 |mNr;...m|enuID = |
|000006d0| 48 69 57 6f 72 64 20 28 | 6d 65 6e 75 43 68 6f 69 |HiWord (|menuChoi|
|000006e0| 63 65 29 3b 0d 09 69 74 | 65 6d 4e 72 20 3d 20 4c |ce);..it|emNr = L|
|000006f0| 6f 57 6f 72 64 20 28 6d | 65 6e 75 43 68 6f 69 63 |oWord (m|enuChoic|
|00000700| 65 29 3b 0d 0d 09 73 77 | 69 74 63 68 20 28 6d 65 |e);...sw|itch (me|
|00000710| 6e 75 49 44 29 20 7b 0d | 09 63 61 73 65 20 30 3a |nuID) {.|.case 0:|
|00000720| 0d 09 09 09 2f 2a 44 6f | 20 6e 6f 74 68 69 6e 67 |..../*Do| nothing|
|00000730| 2a 2f 3b 0d 09 09 62 72 | 65 61 6b 3b 0d 09 63 61 |*/;...br|eak;..ca|
|00000740| 73 65 20 4d 45 4e 55 5f | 41 70 70 6c 65 3a 0d 09 |se MENU_|Apple:..|
|00000750| 09 09 44 6f 41 70 70 6c | 65 20 28 69 74 65 6d 4e |..DoAppl|e (itemN|
|00000760| 72 29 3b 0d 09 09 62 72 | 65 61 6b 3b 0d 09 63 61 |r);...br|eak;..ca|
|00000770| 73 65 20 4d 45 4e 55 5f | 46 69 6c 65 3a 0d 09 09 |se MENU_|File:...|
|00000780| 09 44 6f 46 69 6c 65 20 | 28 69 74 65 6d 4e 72 29 |.DoFile |(itemNr)|
|00000790| 3b 0d 09 09 62 72 65 61 | 6b 3b 0d 09 63 61 73 65 |;...brea|k;..case|
|000007a0| 20 4d 45 4e 55 5f 45 64 | 69 74 3a 0d 09 09 09 44 | MENU_Ed|it:....D|
|000007b0| 6f 45 64 69 74 20 28 69 | 74 65 6d 4e 72 29 3b 0d |oEdit (i|temNr);.|
|000007c0| 09 09 62 72 65 61 6b 3b | 0d 09 63 61 73 65 20 4d |..break;|..case M|
|000007d0| 45 4e 55 5f 52 65 6d 69 | 6e 64 3a 0d 09 09 09 44 |ENU_Remi|nd:....D|
|000007e0| 6f 52 65 6d 69 6e 64 20 | 28 69 74 65 6d 4e 72 29 |oRemind |(itemNr)|
|000007f0| 3b 0d 09 09 62 72 65 61 | 6b 3b 0d 0d 09 7d 20 2f |;...brea|k;...} /|
|00000800| 2a 73 77 69 74 63 68 2a | 2f 0d 0d 20 20 20 20 48 |*switch*|/.. H|
|00000810| 69 6c 69 74 65 4d 65 6e | 75 20 28 30 29 3b 0d 7d |iliteMen|u (0);.}|
|00000820| 20 2f 2a 44 6f 4d 65 6e | 75 2a 2f 0d 0d 2f 2a 2d | /*DoMen|u*/../*-|
|00000830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2a 2f 0d 4d 65 6e 75 |--------|-*/.Menu|
|00000840| 48 61 6e 64 6c 65 09 09 | 6d 65 6e 75 3b 0d 42 6f |Handle..|menu;.Bo|
|00000850| 6f 6c 65 61 6e 09 09 09 | 6d 65 6e 75 42 61 72 43 |olean...|menuBarC|
|00000860| 68 61 6e 67 65 64 3b 0d | 0d 2f 2a 2d 2d 2d 2d 2d |hanged;.|./*-----|
|00000870| 2d 2d 2d 2d 2d 2a 2f 0d | 73 74 61 74 69 63 20 76 |-----*/.|static v|
|00000880| 6f 69 64 20 45 6e 61 62 | 6c 65 09 28 73 68 6f 72 |oid Enab|le.(shor|
|00000890| 74 09 09 69 74 65 6d 4e | 72 2c 0d 09 09 09 09 09 |t..itemN|r,......|
|000008a0| 20 42 6f 6f 6c 65 61 6e | 09 65 6e 61 62 6c 65 64 | Boolean|.enabled|
|000008b0| 29 0d 7b 0d 09 69 66 20 | 28 65 6e 61 62 6c 65 64 |).{..if |(enabled|
|000008c0| 29 20 7b 0d 09 09 45 6e | 61 62 6c 65 49 74 65 6d |) {...En|ableItem|
|000008d0| 20 20 28 6d 65 6e 75 2c | 20 69 74 65 6d 4e 72 29 | (menu,| itemNr)|
|000008e0| 3b 0d 09 7d 20 65 6c 73 | 65 20 7b 0d 09 09 44 69 |;..} els|e {...Di|
|000008f0| 73 61 62 6c 65 49 74 65 | 6d 20 28 6d 65 6e 75 2c |sableIte|m (menu,|
|00000900| 20 69 74 65 6d 4e 72 29 | 3b 0d 09 7d 0d 7d 20 2f | itemNr)|;..}.} /|
|00000910| 2a 45 6e 61 62 6c 65 2a | 2f 0d 0d 2f 2a 2d 2d 2d |*Enable*|/../*---|
|00000920| 2d 2d 2d 2d 2d 2d 2d 2a | 2f 0d 73 74 61 74 69 63 |-------*|/.static|
|00000930| 20 76 6f 69 64 20 45 6e | 61 62 6c 65 54 69 74 6c | void En|ableTitl|
|00000940| 65 09 28 4d 65 6e 75 48 | 61 6e 64 6c 65 09 09 6d |e.(MenuH|andle..m|
|00000950| 65 6e 75 2c 0d 09 09 09 | 09 09 09 20 42 6f 6f 6c |enu,....|... Bool|
|00000960| 65 61 6e 09 09 65 6e 61 | 62 6c 65 64 29 0d 7b 0d |ean..ena|bled).{.|
|00000970| 09 69 66 20 28 65 6e 61 | 62 6c 65 64 20 21 3d 20 |.if (ena|bled != |
|00000980| 28 28 2a 2a 6d 65 6e 75 | 29 2e 65 6e 61 62 6c 65 |((**menu|).enable|
|00000990| 46 6c 61 67 73 20 26 20 | 31 29 29 20 7b 0d 09 09 |Flags & |1)) {...|
|000009a0| 6d 65 6e 75 42 61 72 43 | 68 61 6e 67 65 64 20 3d |menuBarC|hanged =|
|000009b0| 20 74 72 75 65 3b 0d 09 | 7d 0d 09 69 66 20 28 65 | true;..|}..if (e|
|000009c0| 6e 61 62 6c 65 64 29 20 | 7b 0d 09 09 45 6e 61 62 |nabled) |{...Enab|
|000009d0| 6c 65 49 74 65 6d 20 20 | 28 6d 65 6e 75 2c 20 30 |leItem |(menu, 0|
|000009e0| 29 3b 0d 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 44 |);..} el|se {...D|
|000009f0| 69 73 61 62 6c 65 49 74 | 65 6d 20 28 6d 65 6e 75 |isableIt|em (menu|
|00000a00| 2c 20 30 29 3b 0d 09 7d | 0d 7d 20 2f 2a 45 6e 61 |, 0);..}|.} /*Ena|
|00000a10| 62 6c 65 54 69 74 6c 65 | 2a 2f 0d 0d 2f 2a 2d 2d |bleTitle|*/../*--|
|00000a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2a 2f 0d 76 6f 69 64 20 |--------|*/.void |
|00000a30| 55 70 64 61 74 65 4d 65 | 6e 75 73 20 28 76 6f 69 |UpdateMe|nus (voi|
|00000a40| 64 29 0d 7b 0d 09 57 69 | 6e 64 6f 77 50 65 65 6b |d).{..Wi|ndowPeek|
|00000a50| 09 09 66 72 6f 6e 74 50 | 65 65 6b 3b 0d 09 42 6f |..frontP|eek;..Bo|
|00000a60| 6f 6c 65 61 6e 09 09 09 | 69 73 46 72 6f 6e 74 3b |olean...|isFront;|
|00000a70| 09 09 09 2f 2a 69 73 20 | 74 68 65 72 65 20 61 20 |.../*is |there a |
|00000a80| 66 72 6f 6e 74 20 77 69 | 6e 64 6f 77 3f 2a 2f 0d |front wi|ndow?*/.|
|00000a90| 09 42 6f 6f 6c 65 61 6e | 09 09 09 69 73 43 75 72 |.Boolean|...isCur|
|00000aa0| 3b 09 09 09 09 2f 2a 69 | 73 20 74 68 65 72 65 20 |;..../*i|s there |
|00000ab0| 61 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |a curren|t window|
|00000ac0| 3f 2a 2f 0d 09 42 6f 6f | 6c 65 61 6e 09 09 09 69 |?*/..Boo|lean...i|
|00000ad0| 73 44 69 72 74 79 3b 09 | 09 09 2f 2a 69 73 20 69 |sDirty;.|../*is i|
|00000ae0| 74 20 64 69 72 74 79 3f | 2a 2f 0d 09 42 6f 6f 6c |t dirty?|*/..Bool|
|00000af0| 65 61 6e 09 09 09 68 61 | 73 46 69 6c 65 3b 09 09 |ean...ha|sFile;..|
|00000b00| 09 2f 2a 64 6f 65 73 20 | 69 74 20 68 61 76 65 20 |./*does |it have |
|00000b10| 61 20 66 69 6c 65 3f 2a | 2f 0d 09 42 6f 6f 6c 65 |a file?*|/..Boole|
|00000b20| 61 6e 09 09 09 69 73 53 | 65 6c 65 63 74 65 64 3b |an...isS|elected;|
|00000b30| 09 09 09 2f 2a 69 73 20 | 61 6e 79 74 68 69 6e 67 |.../*is |anything|
|00000b40| 20 73 65 6c 65 63 74 65 | 64 3f 2a 2f 0d 09 42 6f | selecte|d?*/..Bo|
|00000b50| 6f 6c 65 61 6e 09 09 09 | 69 73 44 65 73 6b 3b 09 |olean...|isDesk;.|
|00000b60| 09 09 09 2f 2a 69 73 20 | 74 68 65 20 66 72 6f 6e |.../*is |the fron|
|00000b70| 74 20 77 69 6e 64 6f 77 | 20 61 20 64 65 73 6b 20 |t window| a desk |
|00000b80| 61 63 63 3f 2a 2f 0d 09 | 42 6f 6f 6c 65 61 6e 09 |acc?*/..|Boolean.|
|00000b90| 09 09 69 73 54 65 78 74 | 3b 09 09 09 09 2f 2a 69 |..isText|;..../*i|
|00000ba0| 73 20 74 68 65 72 65 20 | 61 20 63 75 72 72 65 6e |s there |a curren|
|00000bb0| 74 20 74 65 78 74 20 66 | 69 65 6c 64 3f 2a 2f 0d |t text f|ield?*/.|
|00000bc0| 09 42 6f 6f 6c 65 61 6e | 09 09 09 69 73 53 63 72 |.Boolean|...isScr|
|00000bd0| 61 70 3b 09 09 09 2f 2a | 69 73 20 74 68 65 72 65 |ap;.../*|is there|
|00000be0| 20 61 6e 79 20 73 63 72 | 61 70 3f 2a 2f 0d 09 6d | any scr|ap?*/..m|
|00000bf0| 65 6e 75 42 61 72 43 68 | 61 6e 67 65 64 20 3d 20 |enuBarCh|anged = |
|00000c00| 66 61 6c 73 65 3b 0d 0d | 09 69 73 46 72 6f 6e 74 |false;..|.isFront|
|00000c10| 09 09 3d 20 28 46 72 6f | 6e 74 57 69 6e 64 6f 77 |..= (Fro|ntWindow|
|00000c20| 20 28 29 20 21 3d 20 6e | 69 6c 29 3b 0d 09 69 73 | () != n|il);..is|
|00000c30| 43 75 72 09 09 3d 20 28 | 63 75 72 57 69 6e 64 6f |Cur..= (|curWindo|
|00000c40| 77 20 21 3d 20 6e 69 6c | 29 3b 0d 09 69 73 44 69 |w != nil|);..isDi|
|00000c50| 72 74 79 09 09 3d 20 66 | 61 6c 73 65 3b 0d 09 68 |rty..= f|alse;..h|
|00000c60| 61 73 46 69 6c 65 09 09 | 3d 20 66 61 6c 73 65 3b |asFile..|= false;|
|00000c70| 0d 09 69 73 53 65 6c 65 | 63 74 65 64 09 3d 20 66 |..isSele|cted.= f|
|00000c80| 61 6c 73 65 3b 0d 09 69 | 66 20 28 69 73 43 75 72 |alse;..i|f (isCur|
|00000c90| 29 20 7b 0d 09 09 69 73 | 44 69 72 74 79 09 09 3d |) {...is|Dirty..=|
|00000ca0| 20 20 63 75 72 2d 3e 6d | 44 6f 63 2d 3e 64 69 72 | cur->m|Doc->dir|
|00000cb0| 74 79 3b 0d 09 09 68 61 | 73 46 69 6c 65 09 09 3d |ty;...ha|sFile..=|
|00000cc0| 20 28 63 75 72 2d 3e 6d | 44 6f 63 2d 3e 66 69 6c | (cur->m|Doc->fil|
|00000cd0| 65 4e 75 6d 20 21 3d 20 | 30 29 3b 0d 09 7d 0d 0d |eNum != |0);..}..|
|00000ce0| 09 69 73 44 65 73 6b 20 | 3d 20 66 61 6c 73 65 3b |.isDesk |= false;|
|00000cf0| 0d 09 69 66 20 28 69 73 | 46 72 6f 6e 74 29 20 7b |..if (is|Front) {|
|00000d00| 0d 09 09 66 72 6f 6e 74 | 50 65 65 6b 09 3d 20 28 |...front|Peek.= (|
|00000d10| 57 69 6e 64 6f 77 50 65 | 65 6b 29 20 46 72 6f 6e |WindowPe|ek) Fron|
|00000d20| 74 57 69 6e 64 6f 77 20 | 28 29 3b 0d 09 09 69 73 |tWindow |();...is|
|00000d30| 44 65 73 6b 09 09 3d 20 | 28 66 72 6f 6e 74 50 65 |Desk..= |(frontPe|
|00000d40| 65 6b 2d 3e 77 69 6e 64 | 6f 77 4b 69 6e 64 20 3c |ek->wind|owKind <|
|00000d50| 20 30 29 3b 0d 09 7d 0d | 09 69 73 54 65 78 74 09 | 0);..}.|.isText.|
|00000d60| 09 3d 20 69 73 43 75 72 | 20 26 26 20 28 63 75 72 |.= isCur| && (cur|
|00000d70| 2d 3e 74 65 78 74 20 21 | 3d 20 6e 69 6c 29 3b 0d |->text !|= nil);.|
|00000d80| 09 69 73 53 63 72 61 70 | 09 09 3d 20 66 61 6c 73 |.isScrap|..= fals|
|00000d90| 65 3b 0d 09 69 66 20 28 | 69 73 54 65 78 74 29 20 |e;..if (|isText) |
|00000da0| 7b 0d 09 09 69 73 53 65 | 6c 65 63 74 65 64 09 3d |{...isSe|lected.=|
|00000db0| 20 28 28 2a 2a 28 63 75 | 72 2d 3e 74 65 78 74 29 | ((**(cu|r->text)|
|00000dc0| 29 2e 73 65 6c 53 74 61 | 72 74 20 21 3d 20 28 2a |).selSta|rt != (*|
|00000dd0| 2a 28 63 75 72 2d 3e 74 | 65 78 74 29 29 2e 73 65 |*(cur->t|ext)).se|
|00000de0| 6c 45 6e 64 29 3b 0d 09 | 09 69 73 53 63 72 61 70 |lEnd);..|.isScrap|
|00000df0| 09 09 3d 20 28 54 45 47 | 65 74 53 63 72 61 70 4c |..= (TEG|etScrapL|
|00000e00| 65 6e 67 74 68 20 28 29 | 20 3e 20 30 29 3b 0d 09 |ength ()| > 0);..|
|00000e10| 7d 0d 0d 09 6d 65 6e 75 | 20 3d 20 46 69 6c 65 4d |}...menu| = FileM|
|00000e20| 65 6e 75 3b 0d 09 45 6e | 61 62 6c 65 20 28 63 46 |enu;..En|able (cF|
|00000e30| 69 6c 65 43 6c 6f 73 65 | 2c 09 09 69 73 46 72 6f |ileClose|,..isFro|
|00000e40| 6e 74 29 3b 0d 09 45 6e | 61 62 6c 65 20 28 63 46 |nt);..En|able (cF|
|00000e50| 69 6c 65 53 61 76 65 2c | 09 09 69 73 44 69 72 74 |ileSave,|..isDirt|
|00000e60| 79 29 3b 0d 09 45 6e 61 | 62 6c 65 20 28 63 46 69 |y);..Ena|ble (cFi|
|00000e70| 6c 65 53 61 76 65 41 73 | 2c 09 09 69 73 43 75 72 |leSaveAs|,..isCur|
|00000e80| 29 3b 0d 09 45 6e 61 62 | 6c 65 20 28 63 46 69 6c |);..Enab|le (cFil|
|00000e90| 65 52 65 76 65 72 74 2c | 09 09 69 73 44 69 72 74 |eRevert,|..isDirt|
|00000ea0| 79 29 3b 0d 0d 09 6d 65 | 6e 75 20 3d 20 45 64 69 |y);...me|nu = Edi|
|00000eb0| 74 4d 65 6e 75 3b 0d 09 | 69 66 20 28 69 73 46 72 |tMenu;..|if (isFr|
|00000ec0| 6f 6e 74 29 20 7b 0d 09 | 09 45 6e 61 62 6c 65 20 |ont) {..|.Enable |
|00000ed0| 28 63 45 64 69 74 55 6e | 64 6f 2c 09 09 69 73 44 |(cEditUn|do,..isD|
|00000ee0| 65 73 6b 29 3b 0d 09 09 | 45 6e 61 62 6c 65 20 28 |esk);...|Enable (|
|00000ef0| 63 45 64 69 74 43 75 74 | 2c 09 09 69 73 44 65 73 |cEditCut|,..isDes|
|00000f00| 6b 20 7c 7c 20 69 73 53 | 65 6c 65 63 74 65 64 29 |k || isS|elected)|
|00000f10| 3b 0d 09 09 45 6e 61 62 | 6c 65 20 28 63 45 64 69 |;...Enab|le (cEdi|
|00000f20| 74 43 6f 70 79 2c 09 09 | 69 73 44 65 73 6b 20 7c |tCopy,..|isDesk ||
|00000f30| 7c 20 69 73 53 65 6c 65 | 63 74 65 64 29 3b 0d 09 || isSele|cted);..|
|00000f40| 09 45 6e 61 62 6c 65 20 | 28 63 45 64 69 74 50 61 |.Enable |(cEditPa|
|00000f50| 73 74 65 2c 09 09 69 73 | 44 65 73 6b 20 7c 7c 20 |ste,..is|Desk || |
|00000f60| 69 73 53 63 72 61 70 29 | 3b 0d 09 09 45 6e 61 62 |isScrap)|;...Enab|
|00000f70| 6c 65 20 28 63 45 64 69 | 74 43 6c 65 61 72 2c 09 |le (cEdi|tClear,.|
|00000f80| 09 69 73 44 65 73 6b 20 | 7c 7c 20 69 73 53 65 6c |.isDesk ||| isSel|
|00000f90| 65 63 74 65 64 29 3b 0d | 09 09 45 6e 61 62 6c 65 |ected);.|..Enable|
|00000fa0| 20 28 63 45 64 69 74 53 | 65 6c 65 63 74 41 6c 6c | (cEditS|electAll|
|00000fb0| 2c 09 69 73 54 65 78 74 | 29 3b 0d 0d 09 7d 0d 09 |,.isText|);...}..|
|00000fc0| 45 6e 61 62 6c 65 54 69 | 74 6c 65 20 28 45 64 69 |EnableTi|tle (Edi|
|00000fd0| 74 4d 65 6e 75 2c 09 20 | 69 73 46 72 6f 6e 74 29 |tMenu,. |isFront)|
|00000fe0| 3b 0d 0d 0d 09 69 66 20 | 28 6d 65 6e 75 42 61 72 |;....if |(menuBar|
|00000ff0| 43 68 61 6e 67 65 64 29 | 20 7b 0d 09 09 44 72 61 |Changed)| {...Dra|
|00001000| 77 4d 65 6e 75 42 61 72 | 20 28 29 3b 0d 09 7d 0d |wMenuBar| ();..}.|
|00001010| 7d 20 2f 2a 55 70 64 61 | 74 65 4d 65 6e 75 73 2a |} /*Upda|teMenus*|
|00001020| 2f 0d 0d 2f 2a 20 4d 61 | 69 6e 4d 65 6e 75 20 2a |/../* Ma|inMenu *|
|00001030| 2f 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001090| 00 00 00 00 46 eb 00 00 | 00 00 00 00 72 73 00 00 |....F...|....rs..|
|000010a0| 72 7e 00 15 00 00 ba f0 | 00 00 00 9e 04 01 01 06 |r~......|........|
|000010b0| 0b 4d 61 69 6e 4d 65 6e | 75 2e 63 70 02 00 00 00 |.MainMen|u.cp....|
|000010c0| 54 45 58 54 43 57 49 45 | 00 00 16 a3 0f 16 00 00 |TEXTCWIE|........|
|000010d0| 00 00 54 45 58 54 43 57 | 49 45 00 00 16 a3 0f 16 |..TEXTCW|IE......|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 af dd 89 b5 00 00 | 0f b2 00 00 01 1e 00 15 |........|........|
|00001100| 00 00 bc 24 00 00 00 98 | 04 01 01 07 0c 76 00 00 |...$....|.....v..|
|00001110| 05 5b 00 00 06 5f 00 01 | d6 75 00 00 00 00 47 00 |.[..._..|.u....G.|
|00001120| 00 00 00 00 00 00 72 91 | 00 00 72 99 00 15 00 00 |......r.|..r.....|
|00001130| bc bc 00 00 00 9a 04 01 | 01 07 0c 76 00 00 0a 23 |........|...v...#|
|00001140| 00 00 0a b3 00 01 54 ea | 00 00 00 00 47 05 00 00 |......T.|....G...|
|00001150| 00 00 00 00 72 9a 00 00 | 72 9f 00 15 00 00 bd 56 |....r...|r......V|
|00001160| 00 00 00 a0 04 01 01 07 | 0c 76 00 00 0b 94 00 00 |........|.v......|
|00001170| 0c 42 00 01 bf 9b 00 00 | 00 00 47 0d 00 00 00 00 |.B......|..G.....|
|00001180| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+